home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-27 | 837 b | 31 lines | [TEXT/KAHL] |
- //|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- //| This file contains the interface to the CPolygon class. A CPolygon
- //| is a graphics primitive. It is an optionally filled closed polygon,
- //| with an optional border.
- //|________________________________________________________________________________
-
- #pragma once
- #include "CPrimitive.h"
- #include <iostream.h>
-
- CLASS CList;
- CLASS CPane;
-
- class CPolygon : public CPrimitive
- {
-
- public:
-
- short boundary_color_index; // Boundary color of this polygon
- CList *polygon_vertex_indices; // Vertices of this polygon
-
-
- void IPolygon(CList *colors);
- void Dispose(void);
- void Draw(RGBColor *override_color, Point **screen_vertices,
- Rect *clip_rect, Boolean fAntialias);
-
- friend istream& operator>> (istream& s, CPolygon& polygon);
-
- };
-